# 
num1 = int(input("请输入第一个数:"))
num2 = int(input("请输入第二个数:"))
num3 = int(input("请输入第三个数:"))
num4 = int(input("请输入第四个数:"))

list = [num1,num2,num3,num4]

for input_num1 in list:
    for input_num2 in list:
        for input_num3 in list:
            if (input_num3 !=input_num2)&(input_num3!=input_num1)&(input_num2!=input_num1):
                
                print(f"{input_num1}{input_num2}{input_num3}")